<div class='form-wrapper'>
    <table class="table-grid">
        <thead>
            <tr>
                <th> <?php echo lang('school_year_subject_name'); ?> </th>
                <th> <?php echo lang('school_year_subject_desc'); ?> </th>
                <th> <?php echo lang('school_year_subject_code'); ?> </th>
                <th> <?php echo lang('school_year_subject_teacher'); ?> </th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ( $subjects as $s ) : ?>
            <tr>
                <td><?php echo $s->subject->subject_name; ?></td>
                <td><?php echo $s->subject->subject_description; ?></td>
                <td><?php echo $s->subject->subject_code; ?></td>
                <td><?php echo $s->teacher->username; ?></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>